package com.zjs.jsp.domain.axd;

import lombok.Data;

/**
 * @author 李文
 * @create 2017-10-13 15:40
 **/
@Data
public class AxdCancelOrderRootData
{

    /**
     * 商户订单号
     */
    private String partner_order_code;

    /**
     * 订单取消描述
     */
    private String order_cancel_description;


    public String toString(String clientFlag) {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"partner_order_code\":\"")
                .append(partner_order_code).append('\"');
        sb.append(",\"order_cancel_description\":\"")
                .append(order_cancel_description).append('\"');
        sb.append(",\"clientFlag\":\"")
                .append(clientFlag).append('\"');
        sb.append('}');
        return sb.toString();
    }

    public String toString(String clientFlag,String date) {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"partner_order_code\":\"")
                .append(partner_order_code).append('\"');
        sb.append(",\"order_cancel_description\":\"")
                .append(order_cancel_description).append('\"');
        sb.append(",\"clientFlag\":\"")
                .append(clientFlag).append('\"');
        sb.append(",\"date\":\"")
                .append(date).append('\"');
        sb.append('}');
        return sb.toString();
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"partner_order_code\":\"")
                .append(partner_order_code).append('\"');
        sb.append(",\"order_cancel_description\":\"")
                .append(order_cancel_description).append('\"');
        sb.append('}');
        return sb.toString();
    }

    public String toSigString() {
        return "order_cancel_description" + order_cancel_description + "partner_order_code" + partner_order_code;
    }
}
